#include "ScnsKey.c.h"

#if defined(SCNS_KEY_ENABLE)&&SCNS_KEY_ENABLE==1

#include "ScnsMenu.h"
#include "ScnsLed.h"
#include "ScnsBeep.h"

static void handler(ScnsKeyMsg msg)
{
    if(msg.status==SCNS_KEY_PRESS_DOWN)
        scnsBeepAdd("S");
    if(msg.status==SCNS_KEY_PRESS_HOLD)
        scnsBeepAdd("L");
}

const ScnsBspKeyConfig scnsBspKeyConfig[SCNS_KEY_MAX]={
    {.name="K0"},
    {.name="K1"},
    {.name="KUP"},
};

#endif
